theme: Specify the weight, not the font, for header bar titles
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 28 Aug 2014 10:17:10 +0000 (11:17 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 28 Aug 2014 10:20:45 +0000 (11:20 +0100)
Using `font: Bold` will override the font with whatever the system
resolves a `Bold` font name to, including the font's own default size.

We want the font weight to be bold, but we want the default font name
and size to come from the GtkSettings:font-name property, like we do for
the rest of the system.

gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index d8cfbcdb3be78c1765e9e429eb1dfc55dca8c00a..8a54ca56ff6c4df721b5b664cdb4df4f9b944e7b 100644 (file)
@@ -946,7 +946,7 @@ GtkComboBox {
   }
 
   .title {
-    font: Bold;
+    font-weight: bold;
     padding: 0px 12px;
   }
   .subtitle {
index 6aeb40c7c2b546cd744730b7f0c952520d4600a6..3b3c17220c1d50f9c1b96aace808bc7d06ca21b9 100644 (file)
@@ -1134,7 +1134,7 @@ GtkComboBox {
     box-shadow: inset 0 1px rgba(238, 238, 236, 0.1); }
   .titlebar .title, GtkCalendar.header .title,
   .header-bar .title {
-    font: Bold;
+    font-weight: bold;
     padding: 0px 12px; }
   .titlebar .subtitle, GtkCalendar.header .subtitle,
   .header-bar .subtitle {
index c8d6e09367cf08e6276e8e11baa785f54cab48e5..b852e0f11cea490563c32e0c85417e3f347eb507 100644 (file)
@@ -1126,7 +1126,7 @@ GtkComboBox {
     box-shadow: inset 0 1px white; }
   .titlebar .title, GtkCalendar.header .title,
   .header-bar .title {
-    font: Bold;
+    font-weight: bold;
     padding: 0px 12px; }
   .titlebar .subtitle, GtkCalendar.header .subtitle,
   .header-bar .subtitle {